package gui;
import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JCheckBox;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.ImageIcon;
import java.awt.Color;
import java.awt.Font;
import javax.swing.JList;


public class SearchResult extends JFrame {

	private JPanel contentPane;



	/**
	 * Create the frame.
	 */
	public SearchResult() {
		setTitle("Search result");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(250, 30, 800, 600);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnBuyFullPicture = new JButton("Buy full picture");
		btnBuyFullPicture.setForeground(new Color(30, 144, 255));
		btnBuyFullPicture.setFont(new Font("Palatino Linotype", Font.BOLD, 13));
		btnBuyFullPicture.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnBuyFullPicture.setBounds(94, 352, 139, 29);
		contentPane.add(btnBuyFullPicture);
		
		JButton btnBuySamplePicture = new JButton("Buy sample picture");
		btnBuySamplePicture.setFont(new Font("Palatino Linotype", Font.BOLD, 13));
		btnBuySamplePicture.setForeground(new Color(30, 144, 255));
		btnBuySamplePicture.setBounds(88, 392, 163, 29);
		contentPane.add(btnBuySamplePicture);
		
		JLabel lblChooseTheSub = new JLabel("Choose the layers you want to add to full picture");
		lblChooseTheSub.setForeground(new Color(30, 144, 255));
		lblChooseTheSub.setFont(new Font("Palatino Linotype", Font.BOLD, 13));
		lblChooseTheSub.setBounds(28, 213, 305, 16);
		contentPane.add(lblChooseTheSub);
		
		JCheckBox chckbxRoads = new JCheckBox("Roads");
		chckbxRoads.setFont(new Font("Palatino Linotype", Font.BOLD, 13));
		chckbxRoads.setBackground(new Color(0, 0, 0));
		chckbxRoads.setForeground(new Color(30, 144, 255));
		chckbxRoads.setBounds(28, 237, 78, 23);
		contentPane.add(chckbxRoads);
		
		JCheckBox chckbxElectricity = new JCheckBox("Electricity");
		chckbxElectricity.setFont(new Font("Palatino Linotype", Font.BOLD, 13));
		chckbxElectricity.setForeground(new Color(30, 144, 255));
		chckbxElectricity.setBackground(new Color(0, 0, 0));
		chckbxElectricity.setBounds(28, 265, 95, 23);
		contentPane.add(chckbxElectricity);
		
		JCheckBox chckbxWater = new JCheckBox("Water");
		chckbxWater.setFont(new Font("Palatino Linotype", Font.BOLD, 13));
		chckbxWater.setForeground(new Color(30, 144, 255));
		chckbxWater.setBackground(new Color(0, 0, 0));
		chckbxWater.setBounds(28, 293, 70, 23);
		contentPane.add(chckbxWater);
		
		JCheckBox chckbxBusinessMapping = new JCheckBox("Business Mapping");
		chckbxBusinessMapping.setFont(new Font("Palatino Linotype", Font.BOLD, 13));
		chckbxBusinessMapping.setForeground(new Color(30, 144, 255));
		chckbxBusinessMapping.setBackground(new Color(0, 0, 0));
		chckbxBusinessMapping.setBounds(136, 259, 145, 23);
		contentPane.add(chckbxBusinessMapping);
		
		JLabel lblResultSearch = new JLabel("Result Search");
		lblResultSearch.setFont(new Font("Palatino Linotype", Font.BOLD, 14));
		lblResultSearch.setForeground(new Color(30, 144, 255));
		lblResultSearch.setBounds(28, 26, 95, 14);
		contentPane.add(lblResultSearch);
		
		JList list = new JList();
		list.setBounds(46, 70, 255, 87);
		contentPane.add(list);
		
		JLabel lblPictureFrame = new JLabel("");
		lblPictureFrame.setIcon(new ImageIcon(SearchResult.class.getResource("/FramePictures/1 (2).jpg")));
		lblPictureFrame.setBounds(0, 0, 784, 562);
		contentPane.add(lblPictureFrame);
	}
}
